const Koa = require('koa');
const Router = require('koa-router');
const movieRouter = require('./movie')
const theaterRouter = require('./theater')
const bodyparser = require('koa-bodyparser')

var app = new Koa();

app.use(bodyparser())

var router= new Router();
router.use('/movie',movieRouter.routes())
router.use('/theater',theaterRouter.routes())

app.use(router.routes())

app.listen(3000,()=>{
  console.log('localhost:3000 start')
})